
<form action="index.php?option=com_download" method="post" name="adminForm" id="adminForm">
	<fieldset id="filter-bar">
            <table border='0' class="download">
               <tr>
                <td style="width: 10%;line-height: 20px;font-size: 13px;">名称検索</td>
                <td style="width: 30%"><input type="text" name="filter_search" id="filter_search" value="<?php echo $this->list['filter_search']; ?>" class="input_medium" /></td>
                <td class="td_medium">
                <button type="submit" name="btnfind" id="btnfind"  class="button">検索</button>
                <button type="submit" onclick="document.id('filter_search').value='';this.form.submit();" class="button" >クリア</button>
                </td>
               </tr>
            </table>
	</fieldset>
    <div class="clr"> </div>

	<table class="adminlist">
		<thead>
			<tr>
				<th width="5%">
                    <input type="checkbox" name="checkall-toggle" value="" title="Check All" onclick="Joomla.checkAll(this)"/>
				</th>
				<th width="10%" class="left">
					<label class="labelth">ID</label>				
                </th>
				<th width="40%" class="left">
					<label class="labelth">名前</label>				
                </th>
				<th width="30%" class="left">
					<label class="labelth">フォルダ</label>			
                </th>
                <th width="15%" class="left">
                    <label class="labelth">作成年月日</label>         
                </th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="15">
				    <?php echo $this->pagination->getListFooter(); ?>	
                </td>
			</tr>
		</tfoot>
		<tbody>
            <?php 
                $rows = $this->rows;
                if($rows != null){
                    foreach($rows as $k=>$row){
            ?> 
    		  <tr class="row<?php echo $k%2?>">
    			<td class="center">
                    <input type="checkbox" id="cb<?php echo $row->DOWI_CODE; ?>" name="cid[]" value="<?php echo $row->DOWI_CODE ?>" onclick="Joomla.isChecked(this.checked);" />
                </td>
    			<td class="left"><?php echo $row->DOWI_CODE; ?></td>
    			<td class="left"><?php echo $row->DOWI_NAME; ?></td>
                <td class="left"><?php echo $row->CADM_NAME; ?></td>
                <td class="left"><?php echo $row->DOWI_DATE; ?></td>
    		  </tr>
          <?php
                }
            }else{
          ?>
                <tr>
                    <td class="center" colspan="5">データは見つかりませんでした</td>
                </tr>
          <?php    
            }
          ?>
         
		</tbody>
	</table>
 
	<div>
		<input type="hidden" name="task" value="" />
		<input type="hidden" name="boxchecked" value="0" />
	</div>
</form>
<script>
Joomla.submitbutton = function(task){
    if(task == 'remove'){
        if(!confirm('選択したデータを削除します。よろしいですか？')){
            return false;
        }
    }
       
       Joomla.submitform(task, document.getElementById('adminForm'));
       
 }
</script>